package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_role_change", desc = "行游山水-角色变更", autoSave = true, uploadCk = true, isCross = true)
public class LogCrossXingYouRoleChange extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(desc = "队伍")
    private int teamId;

    @FieldTypeAnnotation(desc = "队长")
    private long masterId;

    @FieldTypeAnnotation(desc = "被操作玩家")
    private long userId;

    @FieldTypeAnnotation(desc = "角色id")
    private int roleId;

    @FieldTypeAnnotation(desc = "时间")
    private long logTime;

    public LogCrossXingYouRoleChange(int activityId, int teamId, long masterId, long userId, int roleId) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.masterId = masterId;
        this.userId = userId;
        this.roleId = roleId;
        this.logTime = System.currentTimeMillis();
    }

    @Override
    public long getUserId() {
        return 0;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public long getMasterId() {
        return masterId;
    }

    public void setMasterId(long masterId) {
        this.masterId = masterId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public long getLogTime() {
        return logTime;
    }

    public void setLogTime(long logTime) {
        this.logTime = logTime;
    }
}
